home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
manual-p
/
olxvman.tgz
/
olxvman.tar
/
olxvman
/
src-test
/
Makefile
next >
Wrap
Makefile
|
1995-03-25
|
2KB
|
83 lines
# This file was generated by `gxv' from `olxvman.G'.
# Parameters.
PROGRAM = olxvman
SOURCES.c =
SOURCES.h =
SOURCES.G = olxvman.G
STUBS.G = olxvman.G
# Derived parameters.
SOURCES = \
$(SOURCES.G) \
$(SOURCES.h) \
$(SOURCES.l) \
$(SOURCES.y) \
$(SOURCES.cps) \
$(SOURCES.c)
TARGETS.c = \
$(SOURCES.G:%.G=%_ui.c) \
$(STUBS.G:%.G=%_stubs.c)
TARGETS.h = \
$(SOURCES.G:%.G=%_ui.h) \
$(SOURCES.l:%.l=%.h) \
$(SOURCES.y:%.y=%.h) \
$(SOURCES.cps:%.cps=%.h)
TARGETS.other = \
$(SOURCES.G:%.G=%.info)
TARGETS = \
$(TARGETS.other) \
$(TARGETS.h) \
$(TARGETS.c)
OBJECTS = \
$(SOURCES.c:%.c=%.o) \
$(TARGETS.c:%.c=%.o)
# Compiler flags.
CFLAGS += -O2 -m486
CPPFLAGS += -I$(GUIDEHOME)/include -I$(OPENWINHOME)/include -DMAIN
LDFLAGS += -L$(GUIDEHOME)/lib -L$(OPENWINHOME)/lib
LDLIBS += -lguidexv -lguide -lxview -lolgx -lX11
# Standard targets.
all: $(TARGETS.other) $(PROGRAM)
objects: $(SOURCES.c) $(TARGETS.c) $(TARGETS.h) $(OBJECTS)
sources: $(SOURCES)
targets: $(SOURCES) $(TARGETS)
$(PROGRAM): $(SOURCES.c) $(TARGETS.c) $(TARGETS.h) $(OBJECTS)
$(LINK.c) -o $@ $(OBJECTS) $(LDLIBS)
# Targets to be used by Saber-C.
saber_src:
#load $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH) \
$(SOURCES.c) $(TARGETS.c) $(LDLIBS)
saber_obj:
#load $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH) $(OBJECTS) $(LDLIBS)
clean:
$(RM) $(SOURCES.G:%.G=%_ui.c) $(TARGETS.other) $(TARGETS.h) $(OBJECTS) *.BAK *.delta core
%_ui.c: %.G
$(GUIDEHOME)/bin/gxv $*
%_ui.h: %_ui.c
@touch $@
%_stubs.c: %_ui.c
@touch $@
%.info: %_ui.c
@touch $@